package pile.pay.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * <p>
 * 微信设置
 * </p>
 *
 * @author 郭天义
 * @since 2024-07-01
 */
@Getter
@Setter
@TableName("sys_setting_wechat")
@ApiModel(value = "SettingWechat对象", description = "微信设置")
public class SettingWechat implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("微信设置id")
    @TableId(value = "setting_wechat_id", type = IdType.AUTO)
    private Integer settingWechatId;

    @ApiModelProperty("小程序名称")
    private String miniName;

    @ApiModelProperty("小程序appid")
    private String miniAppid;

    @ApiModelProperty("小程序开发者密钥")
    private String miniAppsecret;

    @ApiModelProperty("小程序渠道 1/卫莱电微信小程序 2/卫莱电支付宝小程序 3/阿凡电微信小程序 4/阿凡电支付宝小程序")
    private Integer miniChannel;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("版本")
    @Version
    private Integer version;

    @ApiModelProperty("是否删除 1/是， 0/否")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("删除时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;


}
